package com.wanxin.wb.common.support;

import java.sql.Connection;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.executor.BatchResult;
import org.apache.ibatis.session.Configuration;
import org.apache.ibatis.session.ExecutorType;
import org.apache.ibatis.session.ResultHandler;
import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.dao.support.PersistenceExceptionTranslator;

/**
 * 
 * <B>Description:</B> <br>
 * <B>Create on:</B> 2015年5月31日 上午9:55:03<br>
 *
 * @author 
 * @version 1.0 
 */
public class CommoditySqlSessionTemplate extends SqlSessionTemplate {

    public CommoditySqlSessionTemplate(SqlSessionFactory sqlSessionFactory) {
        super(sqlSessionFactory);
    }

    public CommoditySqlSessionTemplate(SqlSessionFactory sqlSessionFactory,
                                       ExecutorType executorType) {
        super(sqlSessionFactory, executorType);
    }

    public CommoditySqlSessionTemplate(SqlSessionFactory sqlSessionFactory,
                                       ExecutorType executorType,
                                       PersistenceExceptionTranslator exceptionTranslator) {
        super(sqlSessionFactory, executorType, exceptionTranslator);
    }

    @Override
    public SqlSessionFactory getSqlSessionFactory() {

        return super.getSqlSessionFactory();

    }

    @Override
    public ExecutorType getExecutorType() {
        return super.getExecutorType();
    }

    @Override
    public PersistenceExceptionTranslator getPersistenceExceptionTranslator() {
        return super.getPersistenceExceptionTranslator();
    }

    @Override
    public <T> T selectOne(String statement) {
        return super.selectOne(statement);
    }

    @Override
    public <T> T selectOne(String statement, Object parameter) {
        return super.selectOne(statement, parameter);
    }

    @Override
    public <K, V> Map<K, V> selectMap(String statement, String mapKey) {
        return super.selectMap(statement, mapKey);
    }

    @Override
    public <K, V> Map<K, V> selectMap(String statement, Object parameter, String mapKey) {
        return super.selectMap(statement, parameter, mapKey);
    }

    @Override
    public <K, V> Map<K, V> selectMap(String statement, Object parameter, String mapKey,
                                      RowBounds rowBounds) {
        return super.selectMap(statement, parameter, mapKey, rowBounds);
    }

    @Override
    public <E> List<E> selectList(String statement) {
        return super.selectList(statement);
    }

    @Override
    public <E> List<E> selectList(String statement, Object parameter) {
        return super.selectList(statement, parameter);
    }

    @Override
    public <E> List<E> selectList(String statement, Object parameter, RowBounds rowBounds) {
        return super.selectList(statement, parameter, rowBounds);
    }

    @Override
    public void select(String statement, ResultHandler handler) {
        super.select(statement, handler);
    }

    @Override
    public void select(String statement, Object parameter, ResultHandler handler) {
        super.select(statement, parameter, handler);
    }

    @Override
    public void select(String statement, Object parameter, RowBounds rowBounds,
                       ResultHandler handler) {
        super.select(statement, parameter, rowBounds, handler);
    }

    @Override
    public int insert(String statement) {
        return super.insert(statement);
    }

    @Override
    public int insert(String statement, Object parameter) {
        return super.insert(statement, parameter);
    }

    @Override
    public int update(String statement) {
        return super.update(statement);
    }

    @Override
    public int update(String statement, Object parameter) {
        return super.update(statement, parameter);
    }

    @Override
    public int delete(String statement) {
        return super.delete(statement);
    }

    @Override
    public int delete(String statement, Object parameter) {
        return super.delete(statement, parameter);
    }

    @Override
    public <T> T getMapper(Class<T> type) {
        return super.getMapper(type);
    }

    @Override
    public void commit() {
        super.commit();
    }

    @Override
    public void commit(boolean force) {
        super.commit(force);
    }

    @Override
    public void rollback() {
        super.rollback();
    }

    @Override
    public void rollback(boolean force) {
        super.rollback(force);
    }

    @Override
    public void close() {
        //super.close();
    }

    @Override
    public void clearCache() {
        super.clearCache();
    }

    @Override
    public Configuration getConfiguration() {
        return super.getConfiguration();
    }

    @Override
    public Connection getConnection() {
        return super.getConnection();
    }

    @Override
    public List<BatchResult> flushStatements() {
        return super.flushStatements();
    }
}
